package spring.j2024_11_17_3.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import spring.j2024_11_17_3.dao.UserDao;

@Configuration
public class UserConfig {
    @Bean
    public UserDao u1(){
        UserDao dao = new UserDao() ;
        dao.setId(1);
         return dao ;
    }
     @Bean
    public UserDao u2(){
        UserDao dao = new UserDao() ;
        dao.setId(2);
        return dao ;
    }


}
